﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Steve.UI.Administration.DataAnnotations;

namespace Steve.UI.Tests
{
    [TestClass]
    public class AbsoluteUriAttribute_Tests
    {
        [TestMethod]
        public void IsValid_Test()
        {
            var att = new AbsoluteUriAttribute();

            Assert.IsFalse(att.IsValid(null));
            Assert.IsTrue(att.IsValid(new Uri("http://www.google.com")));
        }
    }
}
